//
//  IdentityInfomationCell.m
//  Peso Guide
//
//  Created by macbook on 2025/6/12.
//

#import "IdentityInfomationCell.h"

@interface IdentityInfomationCell ()

@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIImageView *rightImg;

@end

@implementation IdentityInfomationCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _titleLabel = [PesoKit createLabelWithFrame:CGRectMake(13, 0, KScreenWidth-32*2, 47) backGroundColor:ColorHex(@"#FFFFFF") text:@"" textColor:ColorHex(@"#0E1D31") font:FONT(FontWeightStyleRegular, 15)];
        [self.contentView addSubview:_titleLabel];
        
        _rightImg = [PesoKit createImageViewWithFrame:CGRectMake(KScreenWidth-23*2-7, 17.5, 7, 12) imageNamed:@"ic_product_right_icon"];
        [self.contentView addSubview:_rightImg];
        
        UIView *lineView = [PesoKit createViewWithFrame:CGRectMake(13, 46.5, KScreenWidth-28*2, 0.5) backGroundColor:ColorHex(@"#EEEEEE")];
        [self.contentView addSubview:lineView];
    }
    return self;
}

- (void)setNameString:(NSString *)nameString {
    _nameString = nameString;
    
    
    _titleLabel.text = nameString;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
